package com.szp.drug.component.service.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.szp.drug.entity.DrugRole;
import com.szp.drug.util.ResultEntity;

import java.util.List;

/**
 * 角色service接口
 * @author SuZePing
 * @create 2021-01-19 8:09
 * @E-mail suzeping10@126.com
 */
public interface DrugRoleService extends IService<DrugRole> {
	/**
	 * 分页获取role
	 * @param keyword
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	ResultEntity<PageInfo<DrugRole>> getPageInfo(String keyword, String pageNum, String pageSize);

	/**
	 * 新增role(并返回新增后总数量)
	 * @param role
	 * @return
	 */
	ResultEntity<Integer> saveRole(DrugRole role);

	/**
	 * 修改role
	 * @param role
	 * @return
	 */
	ResultEntity<String> editRole(DrugRole role);

	/**
	 * 删除role
	 * @param roleIds
	 * @return
	 */
	ResultEntity<String> removeRole(List<String> roleIds);
}
